<?php defined('KX_ROOT') || exit('Permission denied');?><!DOCTYPE html>
<html>
<head>
    <meta charset="UTF-8" name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no">
    <meta http-equiv="Content-Security-Policy" content="upgrade-insecure-requests">
    <title>阅读历史 - 用户中心 - <?php echo \Kuxin\Helper\Arr::getValue($_kxcms_config, "sitename");?></title>
    <link rel="stylesheet" href="<?php echo \Kuxin\Helper\Arr::getValue($_kxcms_config, "resurl");?>/template/kxmobileno1/css/global.css"/>
    <script src="<?php echo \Kuxin\Helper\Arr::getValue($_kxcms_config, "resurl");?>/template/kxmobileno1/js/flexible.min.js"></script>
</head>
<body class="bg-f27">
<div class="relative w100  bg-white flex-wrp flex-align-center flex-between lh100 plr15 ptb15">
    <img src="<?php echo \Kuxin\Helper\Arr::getValue($_kxcms_config, "resurl");?>/template/kxmobileno1/images/return.png" class="pt-return">
    <div class="size18 bold color37">阅读历史</div>
    <div>
        <img src="<?php echo \Kuxin\Helper\Arr::getValue($_kxcms_config, "resurl");?>/template/kxmobileno1/images/ellipsis.png" class="mr5 pt-ellipsis">
    </div>
    <!-- tip -->
    <div class="pt5 pb5 pt-tip">
        <a href="<?php echo \Kuxin\Helper\Url::build("index.index",[],"");?>" class="block color1 text-center pt-tip-item">前往首页</a>
        <a href="javascript:void(0);" class="block color1 text-center pt-tip-item pt-history-clear">清空记录</a>
    </div>
</div>
<div style="min-height:85vh">
    <!-- 星标置顶 -->
    <?php $list=\Kuxin\Block::show('mark.history', ['userid'=>$userinfo['id']]);?>
    <div class="w100 bg-white lh100 mt10 pt-read">
        <div class="flex-wrp">
            <img src="<?php echo \Kuxin\Helper\Arr::getValue($_kxcms_config, "resurl");?>/template/kxmobileno1/images/recently_read.png" class="pt-stick-icon">
            <div class="color4 size14">阅读历史</div>
        </div>
        <div class="pt-stick-cont">
            <?php if(is_array($list)): foreach($list as $key =>$loop):?>
            <div class="flex-wrp pt-stick-item" data-novel-id="<?php echo $loop['novel']['id'];?>" data-chapter-id="<?php echo $loop['nextid'];?>" data-is-mark="<?php echo $loop['ismark']?1:0;?>">
                <img src="<?php echo $loop['novel']['cover'];?>" class="mr15" data-url="<?php echo \Kuxin\Helper\Url::build("novel.chapter.read",['novelid'=>$loop['novel']['id'],'pinyin'=>$loop['novel']['pinyin'],'chapterid'=>$loop['nextid']],"");?>">
                <div class="flex-item flex-wrp flex-cell flex-between pt5">
                    <div class="flex-wrp flex-between">
                        <a href="<?php echo \Kuxin\Helper\Url::build("novel.novel.index",['novelid'=>$loop['novel']['id'],'pinyin'=>$loop['novel']['pinyin']],"");?>">
                            <div class="size14 color7"><?php echo $loop['novel']['name'];?>
                                <?php if($loop['markinfo']['newnum']>0):?><span class="color4 size12">[<span class="color2"><?php echo $loop['newnum'];?></span> 章未读]</span><?php endif;?>
                            </div>
                        </a>
                        <img src="<?php echo \Kuxin\Helper\Arr::getValue($_kxcms_config, "resurl");?>/template/kxmobileno1/images/ellipsis_gray.png" class="pt-ellipsis-white">
                    </div>
                    <a href="<?php echo \Kuxin\Helper\Url::build("author.space.index",['authorid'=>$loop['author']['id'],'pinyin'=>$loop['author']['pinyin'],'name'=>$loop['author']['name']],"");?>">
                        <div class="size12 color4">[ <?php echo $loop['author']['name'];?> ]</div>
                    </a>
                    <a href="<?php echo \Kuxin\Helper\Url::build("novel.chapter.read",['novelid'=>$loop['novel']['id'],'pinyin'=>$loop['novel']['pinyin'],'chapterid'=>$loop['last']['id']],"");?>">
                        <div class="size12 compulsory-row-one lh130 color4"><?php echo \Kuxin\View::default($loop['novel']['is_over'],'连载','完结');?> - <?php echo $loop['last']['name'];?></div>
                    </a>
                    <div class="flex-wrp">
                        <a class="color5 size12 compulsory-row-one" href="<?php echo \Kuxin\Helper\Url::build("novel.chapter.read",['pinyin'=>$loop['novel']['pinyin'],'novelid'=>$loop['novel']['id'],'chapterid'=>$loop['markinfo']['nextid']],"");?>">
                            读到 - <?php echo $loop['markinfo']['name'];?>
                        </a>
                    </div>
                </div>
            </div>
            <?php endforeach; endif;?>
        </div>
    </div>
</div>
<!-- 底部版权 -->
<div class="pt-copyright">
    <div class="size12  w100 text-center mt15 mb10"><a title="隐私声明" href="<?php echo \Kuxin\Helper\Url::build("page.detail",['key'=>'privacy'],"");?>" class="color4">隐私声明</a> | <a title="免责声明" href="<?php echo \Kuxin\Helper\Url::build("page.detail",['key'=>'disdaimer'],"");?>" class="color4">免责声明</a> | <a title="关于我们" href="<?php echo \Kuxin\Helper\Url::build("page.detail",['key'=>'about'],"");?>" class="color4">关于我们</a></div>
    <div class="size12 color4 w100 text-center mb10">Copyright © 2009-<?php echo date(Y);?> <?php echo \Kuxin\Helper\Arr::getValue($_kxcms_config, "beian");?></div>
    <div class="size12  w100 text-center"><?php echo \Kuxin\Response::runinfo();?></div>
</div>
<!-- js -->
<script src="<?php echo \Kuxin\Helper\Arr::getValue($_kxcms_config, "resurl");?>/template/kxmobileno1/js/jquery-3.3.1.js"></script>
<script>
    $('.pt-return,.pt-recall').click(function(){
        window.history.back();
    });
    $('.pt-ellipsis').click(function(){
        $('.pt-tip').toggle()
    });
    $('.pt-tip .pt-tip-item').click(function(){
        $('.pt-tip').toggle()
    });
</script>
<div class="none">
    <?php echo \Kuxin\Helper\Arr::getValue($_kxcms_config, "tongji.mobile");?>
    <?php if(\Kuxin\Helper\Arr::getValue($_kxcms_config, "app.use_cdn")):?>
    <script src="/api/stat/novel/info.js"></script>
    <script src="/api/stat/novel/read.js"></script>
    <?php endif;?>
</div>
<!-- 底部按钮 -->
<div class="w100 flex-wrp flex-between size12 color4 flex-align-center pt-tabbar">
    <a class="pt-tabbar-item pt-tabbar-mark <?php if(($pagesign =='user' && ($userleftsign == 'mark' || $userleftsign == 'history') )):?>active<?php endif;?>" href="<?php if($islogin):?><?php echo \Kuxin\Helper\Url::build("user.mark.index",[],"");?><?php else:?><?php echo \Kuxin\Helper\Url::build("user.history.index",[],"");?><?php endif;?>">
        <div class="pt-tabbar-chunk"></div>
        <div class="lh100">书架</div>
    </a>
    <a class="pt-tabbar-item pt-tabbar-home <?php if(($pagesign!='user')):?>active<?php endif;?>" href="<?php echo \Kuxin\Helper\Url::build("index.index",[],"");?>">
        <div class="pt-tabbar-chunk"></div>
        <div class="lh100">书城</div>
    </a>
    <a class="pt-tabbar-item pt-tabbar-booklist <?php if(($pagesign=='booklist')):?>active<?php endif;?>" href="<?php echo \Kuxin\Helper\Url::build("booklist.booklist.index",[],"");?>">
        <div class="pt-tabbar-chunk"></div>
        <div class="lh100">书单</div>
    </a>
    <a class="pt-tabbar-item pt-tabbar-my <?php if(($pagesign=='user' && $userleftsign!='mark' && $userleftsign!='history')):?>active<?php endif;?>" href="<?php echo \Kuxin\Helper\Url::build("user.index.index",[],"");?>">
        <div class="pt-tabbar-chunk"></div>
        <div class="lh100">我的</div>
    </a>
</div>

<!-- 遮罩 -->
<div class="pt-mask-mark">
    <div class="pt-mask-mark-shade"></div>
    <div class="flex-wrp bg-white pt-mask-mark-bottom">
        <div class="flex-wrp flex-center size14 color2 w50 pt-mark"></div>
        <div class="flex-wrp flex-center size14 color4 w50 pt-history-remove">移出记录</div>
    </div>
</div>

<!-- js -->
<script src="<?php echo \Kuxin\Helper\Arr::getValue($_kxcms_config, "resurl");?>/template/kxmobileno1/js/layer/mobile/layer.js"></script>
<script src="<?php echo \Kuxin\Helper\Arr::getValue($_kxcms_config, "resurl");?>/template/kxmobileno1/js/history.js"></script>
<!-- js -->
<script>
    var __ADD_MARK = '<?php echo \Kuxin\Helper\Url::build("user.mark.add",[],"");?>',
        __DEL_MARK = '<?php echo \Kuxin\Helper\Url::build("user.mark.del",[],"");?>',
        __REMOVE_HISTORY = '<?php echo \Kuxin\Helper\Url::build("user.history.del",[],"");?>',
        __CLEAR_HISTORY = '<?php echo \Kuxin\Helper\Url::build("user.history.clear",[],"");?>';
</script>
</body>
</html>